package com.bwie.controller;

import com.bwie.service.TbUserService;
import com.bwie.utils.R;
import com.bwie.utils.Result;
import com.bwie.vo.LoginVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/auth/index")
public class IndexController {

    @Autowired
    TbUserService tbUserService;


    /**
     * @description 手机号登录
     * @params [loginVo]
     * @return com.bwie.utils.Result
     * @author 杰
     * @date 2025/6/26 9:26
     */

    @PostMapping("/login")
    public Result login(@RequestBody @Validated LoginVo loginVo){
        return tbUserService.login(loginVo);
    }


}
